package com.ruoyi.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.web.domain.MinioBaseFile;
import com.ruoyi.web.mapper.MinioBaseFileMapper;
import com.ruoyi.web.service.MinioBaseFileService;
import org.springframework.stereotype.Service;

/**
* @author 11610
* @description 针对表【file_info】的数据库操作Service实现
* @createDate 2025-04-04 22:15:09
*/
@Service
public class MinioBaseFileServiceImpl extends ServiceImpl<MinioBaseFileMapper, MinioBaseFile>
    implements MinioBaseFileService {

    @Override
    public void saveFileInfo(String md5, String saveFileName, String fileName, String fileSize) {
        MinioBaseFile minioBaseFile = new MinioBaseFile();
        minioBaseFile.create();
        minioBaseFile.setId(md5);
        minioBaseFile.setSaveFileName(saveFileName);
        minioBaseFile.setFileName(fileName);
        saveOrUpdate(minioBaseFile);
    }
}




